import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  // 储存数据
  state: {
    menusList: []
  },
  // 同步代码
  mutations: {
    updateMenus(state, asyncRoutes) {
      state.menusList = [...constantRoutes, ...asyncRoutes]
    }
  }
}
